# Array
array := ["a-phone", "b-phone", "a-pad"]

array_has_phone if {
    some item in array
    endswith(item,"-phone")
}

array_after_0_has_phone if {
    some index, item in array
    endswith(item,"-phone")
    index > 0
}

array_has_index_before_2 if {
    some index, _ in array
    index < 2
}
